package com.platform.server.util;

import org.junit.Test;

import com.alibaba.druid.support.logging.Log;

import cn.jpush.api.push.model.Platform;
import cn.jpush.api.push.model.PushPayload;
import cn.jpush.api.push.model.audience.Audience;
import cn.jpush.api.push.model.notification.Notification;

/**
 * 极光推送
 * @author Administrator
 *
 */
public class JiGuangUtil {
	public static PushPayload buildPushObject_all_alias_alert(String user,String content) {
        return PushPayload.newBuilder()
                .setPlatform(Platform.all())
                .setAudience(Audience.alias(user))
                .setNotification(Notification.alert(content))
                .build();
    }
}
